#{extends 'main.html' /} 
#{set title:'Home' /} 
#{list items:users,as:'user'}

<div>
	<h4>
		<u>user ${user.id}</u>
	</h4>
	<h2>Name: ${user.name}</h2>
	<h2>E-mail: ${user.mail}</h2>

	<!-- this part takes the id from the user list to 
    use it in setting the user which is chosen to be a housekeeper
    be sending this id to the method setUserToHousekeeper() in the controller
     @author Yasmin Gamal -->
	<form action="@{Application.setUserToHousekeeper()}" method="get">
		<button name="UserID" type="submit" value=${user.id}>Set As
			Housekeeper</button>
	</form>
</div>

#{/list}
</body>
</html>